package com.sgx.learning.luban.homework.constantpool;

import com.sgx.learning.luban.homework.basictype.U2;
import lombok.Data;

import java.io.IOException;
import java.io.InputStream;


@Data
public class ConstantStringInfo extends ConstantPoolInfo {

    private short index;

    @Override
    public void read(InputStream is) throws IOException {
        this.index = U2.read(is).getValue();
    }
}
